package com.dgut.dao;

import com.dgut.pojo.Area;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AreaDao extends JpaRepository<Area,Integer> {
    List<Area> findByGrade(int grade);
    Area findAreaById(int id);

    Area findAreaByName(String name);
}
